package bid.yanhj.yanhaijiang.hello_word;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.ImageView;

/**
 * 启动页
 */
public class SplashActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_splash);

        initView();
    }

    public void initView() {
        ImageView splashView = this.<ImageView>findViewById(R.id.splash_view);

        splashView.postDelayed(new Runnable() {
            @Override
            public void run() {
                jumpToGuideActivity();
            }
        }, 1500);
    }

    private void jumpToGuideActivity() {
        Intent intent = new Intent(this,GuideActivity.class);
        startActivity(intent);
        finish();
    }
}
